﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace wowdpssim.test
{
    class skillA : skillInterface
    {
        public skillA(testrunner testrunner, string toType)
        {
            parent = testrunner;
            rand = new Random();
            outPut = toType;
        }
        private testrunner parent;
        Random rand;
        private string outPut;
        #region skillInterface Members

        public int prePlan()
        {
            return (int)(rand.NextDouble() * 100);
        }

        public int doAction()
        {
            Console.WriteLine(outPut);
            return 1;
        }

        public int postPlan(int _params)
        {
            parent.addDictionaryItem(this, parent.getCurrentSimulationIteration() + 1000 );
            return 1;
        }

        #endregion
    }
}
